<%--
  Created by IntelliJ IDEA.
  User: zhaoli
  Date: 2017/8/16
  Time: 下午10:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>大学列表</title>
    <script type="text/javascript"
            src="<%=request.getContextPath()%>/js/jquery-3.2.1.min.js"></script>
    <script type="text/javascript">
        $(function() {
            $("#prev").click(
                function() {
                    $("#form0").attr("action",
                        "${pageContext.request.contextPath}/university/prev.do");
                    var currentPage = $("#currentPage").val() - 1;
                    $("#currentPage").val(currentPage);
                    alert($("#currentPage").val());
                    $("#form0").submit();
                })

            $("#next").click(
                function() {
                    $("#form0").attr("action",
                        "${pageContext.request.contextPath}/user/next.do");
                    $("#form0").submit();
                })
        })
    </script>
</head>
<body>
<body>
    <table style="width:100%;border:1px white solid">
        <tr bgcolor="#4F81BD"style="color: #fff;">
            <th style="text-align: center">ID</th>
            <th style="text-align: center">编码</th>
            <th style="text-align: center">名称</th>
            <th style="text-align: center">主管部门</th>
            <th style="text-align: center">城市</th>
            <th style="text-align: center">学校等级</th>
        </tr>
        <c:forEach items="${list }" var="item">
            <tr>
                <td align = "center">${item.id}</td>
                <td align = "center">${item.univcode}</td>
                <td align = "center">${item.univname}</td>
                <td align = "center">${item.authorities}</td>
                <td align = "center">${item.city}</td>
                <td align = "center">${item.grade}</td>
            </tr>
        </c:forEach>
    </table>
</body>
</body>
</html>